@import "variables";
@import "mixin";
@import "transition";
@import "element-ui";
@import "sidebar";
@import "btn";
@import "plmadmin";
@import "../font/iconfont.css";

body {
  background: $background;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  margin: 0;
  padding: 0;
  font-family: "pingFangSC-Regular", "Microsoft YaHei", Arial, sans-serif,
    Helvetica;

  &::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  &::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
  }

  &::-webkit-scrollbar-thumb {
    background: #eff2f7;
    border-radius: 4px;
    border-right: 2px solid #fff;
  }
}

* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: transparent;
  -moz-tap-highlight-color: rgba(0, 0, 0, 0);
  -ms-tap-highlight-color: rgba(0, 0, 0, 0);
  -o-tap-highlight-color: rgba(0, 0, 0, 0);
  outline: none;
  border: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-sizing: border-box;
  -moz-sizing: border-box;
  font-family: "pingFangSC-Regular", "Microsoft YaHei", Arial, sans-serif,
    Helvetica;
  font-size: 13px;
}

ul,
li,
ol {
  list-style: none;
}

label {
  font-weight: 700;
}

#app,
body,
html {
  width: 100%;
  height: 100%;
  min-width: 1280px;
}

.none {
  display: none;
}

.clear {
  clear: both;
}

.clearfix {
  zoom: normal;
}

input {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  /* 点击去除高亮的颜色 */
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

input[type="number"] {
  -moz-appearance: textfield;
}

select {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  /* 去除系统默认的样式 */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  /* 点击去除高亮的颜色 */
}

select::-ms-expand {
  display: none;
}

textarea {
  resize: none;
}

.no-padding {
  padding: 0 !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pr-15 {
  padding-right: 15px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

/*  */
.w72 {
  width: 72px;
}

.w108 {
  width: 108px;
}

/*  */
.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px 20px 45px 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(
    90deg,
    rgba(32, 182, 249, 1) 0%,
    rgba(32, 182, 249, 1) 0%,
    rgba(33, 120, 241, 1) 100%,
    rgba(33, 120, 241, 1) 100%
  );

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

.mb19 {
  margin-bottom: 19px;
}

.mb16 {
  margin-bottom: 16px !important;
}

.mb24 {
  margin-bottom: 24px !important;
}

.p20 {
  padding: 20px;
}

.px20 {
  padding-left: 20px;
  padding-right: 20px;
}

.py10 {
  margin-top: 10px;
  margin-bottom: 10px;
}

.ml10 {
  margin-left: 10px !important;
}

.mr15 {
  margin-right: 15px;
}

.btn-width-long {
  width: 100% !important;
}

.fs20 {
  font-size: 20px !important;
}

.fs16 {
  font-size: 16px !important;
}

.fs14 {
  font-size: 14px !important;
}

.fs13 {
  font-size: 13px !important;
}

.red {
  color: $fontRed;
}

.warning {
  color: $yellow;
  margin: 0 8px 0 0;
}

.cursor-pointer {
  cursor: pointer;
}

.padding16 {
  padding: 16px;
}

.mb-3 {
  margin-bottom: 16px !important;
}

// 页面背景公用 样式

.content-wrap {
  background: #fff;
  padding: 20px 10px 20px;
  border-radius: 4px;
  box-shadow: 0px 12px 24px 0px rgba(18, 38, 63, 0.03);

  @media (min-width: 768px) {
    background: #fff;
    padding: 20px 20px 20px;
    border-radius: 4px;
  }

  @media (max-width: 1440px) {
    padding: 16px;
    .pagination-container {
      margin-top: 16px;
    }
  }

  @media (max-width: 1360px) {
    padding: 12px;
    .pagination-container {
      margin-top: 12px;
    }
  }
}

// form 表单验证报错时 图标变红 全局修改
.is-error {
  .el-form-item__content {
    .el-input {
      .el-input__suffix {
        .el-input__suffix-inner {
          .iconfont {
            color: #f46a6a;
          }
        }
      }
    }
  }
}

.flex-space-between {
  @include flex(space-between, center, row);
}

.flex-end {
  @include flex(flex-end, center, row);
}

@import "theme/index.scss";
